package com.magic.item.mapper;

import com.magic.item.pojo.Order;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * Created by zhuqin on 2021/3/24
 */
public interface OrderMapper extends Mapper<Order> {
    @Select("select * from tb_order where buyer_nick like concat('%', #{keyword}, '%')")
    List<Order> selectExample(String keyword);
    @Select("select * from tb_order where order_id = #{oid}")
    List<Order> selectOrderByOid(Long oid);
}
